<?php
$title = 'Editar Menu';
$this->headTitle($title);
?>
<h1><?php echo $this->titulo;?></h1>
<?php

$form = $this->form;
$form->prepare();
$form->setAttributes(array(
    'action' => $this->url.'/application/menu/edit/'.$this->id,
    'method' => 'post'
));


echo $this->form()->openTag($form);
echo $this->formHidden($form->get('id'));
 

// echo $this->formRow($form->get('titulo'));
//// echo $this->formRow($form->get('descripcion'));

echo $this->formLabel($form->get('titulo'));
echo $this->formInput($form->get('titulo'));
echo $this->formElementErrors($form->get('titulo'));
echo $this->formLabel($form->get('descripcion'));
echo $this->formInput($form->get('descripcion'));
echo $this->formElementErrors($form->get('descripcion'));
echo $this->formLabel($form->get('comando'));
echo $this->formInput($form->get('comando'));
echo $this->formElementErrors($form->get('comando'));
echo $this->formLabel ($form->get('menuPadreId'));
echo $this->formSelect($form->get('menuPadreId'));
echo $this->formElementErrors($form->get('menuPadreId'));


echo $this->formSubmit($form->get('ok'));
echo $this->formSubmit($form->get('cancelar'));
echo $this->form()->closeTag();

?>
 <a href="<?php echo $this->basePath() ?>/application/menu/index">Cancelar</a>